/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Dental Providers Provider Codes Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getDentalProvidersProviderCodesMember1()
 * @model extendedMetaData="name='DentalProvidersProviderCodes_._member_._1'"
 * @generated
 */
public enum DentalProvidersProviderCodesMember1 implements Enumerator {
	/**
	 * The '<em><b>120000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_120000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_120000000X(0, "_120000000X", "120000000X"),

	/**
	 * The '<em><b>126800000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_126800000X_VALUE
	 * @generated
	 * @ordered
	 */
	_126800000X(1, "_126800000X", "126800000X"),

	/**
	 * The '<em><b>124Q00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_124Q00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_124Q00000X(2, "_124Q00000X", "124Q00000X"),

	/**
	 * The '<em><b>126900000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_126900000X_VALUE
	 * @generated
	 * @ordered
	 */
	_126900000X(3, "_126900000X", "126900000X"),

	/**
	 * The '<em><b>122400000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_122400000X_VALUE
	 * @generated
	 * @ordered
	 */
	_122400000X(4, "_122400000X", "122400000X");

	/**
	 * The '<em><b>120000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>120000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_120000000X
	 * @model literal="120000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _120000000X_VALUE = 0;

	/**
	 * The '<em><b>126800000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>126800000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_126800000X
	 * @model literal="126800000X"
	 * @generated
	 * @ordered
	 */
	public static final int _126800000X_VALUE = 1;

	/**
	 * The '<em><b>124Q00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>124Q00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_124Q00000X
	 * @model literal="124Q00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _124Q00000X_VALUE = 2;

	/**
	 * The '<em><b>126900000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>126900000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_126900000X
	 * @model literal="126900000X"
	 * @generated
	 * @ordered
	 */
	public static final int _126900000X_VALUE = 3;

	/**
	 * The '<em><b>122400000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>122400000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_122400000X
	 * @model literal="122400000X"
	 * @generated
	 * @ordered
	 */
	public static final int _122400000X_VALUE = 4;

	/**
	 * An array of all the '<em><b>Dental Providers Provider Codes Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final DentalProvidersProviderCodesMember1[] VALUES_ARRAY =
		new DentalProvidersProviderCodesMember1[] {
			_120000000X,
			_126800000X,
			_124Q00000X,
			_126900000X,
			_122400000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Dental Providers Provider Codes Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<DentalProvidersProviderCodesMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Dental Providers Provider Codes Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentalProvidersProviderCodesMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DentalProvidersProviderCodesMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dental Providers Provider Codes Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentalProvidersProviderCodesMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DentalProvidersProviderCodesMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dental Providers Provider Codes Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentalProvidersProviderCodesMember1 get(int value) {
		switch (value) {
			case _120000000X_VALUE: return _120000000X;
			case _126800000X_VALUE: return _126800000X;
			case _124Q00000X_VALUE: return _124Q00000X;
			case _126900000X_VALUE: return _126900000X;
			case _122400000X_VALUE: return _122400000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private DentalProvidersProviderCodesMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //DentalProvidersProviderCodesMember1
